package com.mep.backup.feign;

import com.mep.common.http.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "story-backup/story", path = "/", fallback = IFeignStoryApi.FeignClientFallback.class)
public interface IFeignStoryApi {

    @PostMapping("/fei")
    HttpResult feiLongZaiTian();

    @PostMapping("/wu")
    HttpResult wuYouWuLv();

    @Component
    class FeignClientFallback implements IFeignStoryApi {


        @Override
        public HttpResult feiLongZaiTian() {
            return null;
        }

        @Override
        public HttpResult wuYouWuLv() {
            return null;
        }
    }
}
